package com.entity;

import java.util.Arrays;
import java.util.Date;

public class TArticle {
    private Integer id;

    private String aid;

    private Integer uid;

    private String url;

    private String title;

    private String authorNick;

    private Integer readAmount;

    private Integer commentAmount;

    private Date createTime;

    private Date updateTime;

    private TTag[] tags;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthorNick() {
        return authorNick;
    }

    public void setAuthorNick(String authorNick) {
        this.authorNick = authorNick;
    }

    public Integer getReadAmount() {
        return readAmount;
    }

    public void setReadAmount(Integer readAmount) {
        this.readAmount = readAmount;
    }

    public Integer getCommentAmount() {
        return commentAmount;
    }

    public void setCommentAmount(Integer commentAmount) {
        this.commentAmount = commentAmount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public TTag[] getTags() {
        return tags;
    }

    public void setTags(TTag[] tags) {
        this.tags = tags;
    }

    @Override
    public String toString() {
        return "TArticle{" +
                "id=" + id +
                ", aid='" + aid + '\'' +
                ", uid=" + uid +
                ", url='" + url + '\'' +
                ", title='" + title + '\'' +
                ", authorNick='" + authorNick + '\'' +
                ", readAmount=" + readAmount +
                ", commentAmount=" + commentAmount +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", tags=" + Arrays.toString(tags) +
                '}';
    }
}